﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Web.UI;

namespace Guru.Web.Controls.Asp
{
    public class ContainerButton : PlaceHolder
    {
        public ContainerButton()
            : base()
        { 
        }
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            StringBuilder baseHTML = new StringBuilder();
            using (StringWriter twr = new StringWriter(baseHTML))
            {
                using (HtmlTextWriter newWriter = new HtmlTextWriter(twr))
                {
                    base.Render(newWriter);
                    newWriter.Flush();
                    writer.Write(string.Format(HTMLTemplate.GetByKey("Guru.Web.Controls.Asp.ContainerButton"), baseHTML));
                }
            }
        }
    }
}
